<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String basepath = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理</title>
<link rel="stylesheet" href="/layui/css/layui.css">
<link rel="stylesheet" href="/css/base.css">
<script src="/layui/layui.js"></script>
<script src="/js/ajaxrequest.js"></script>
<script src="/js/layeralert.js"></script>
<script src="/js/menutree.js"></script>
</head>
<body onload="loadMenu()">
<h3>菜单列表</h3>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>基本树</legend>
</fieldset>
 
<div class="treeboder">
  <ul id="demo1"></ul>
</div>
</body>
<script>

function loadMenu(){
	ajaxmoudle.ajaxRequest('GET','/listMenu',null,function(data){
		//console.log(data);
	    menutree.showTree('#demo1',data);
    });
}
</script>
</html>